<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>6.IE_get_cache.html</title>


</head>
<body>
<div id="content">
</div>
<button id="btn">提交</button>

<script>
    let btn = document.getElementById("btn");
    let content = document.getElementById("content");
    btn.onclick=()=>{
        const  xhr = new XMLHttpRequest();
        //IE浏览器如果发送GET请求每次的URL相同的话就会走缓存而不发起请求，所以要让每次请求的URL都不同
        xhr.open("get","./ajax_get?t="+Date.now());
        xhr.send();
        xhr.onreadystatechange =()=>{
            if (xhr.status === 4){

            }
        }

    }



</script>
</body>
</html>